package com.yanchangapp.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yanchangapp.R;
import com.yanchangapp.model.bean.MailUserBean;

import java.util.List;

/**
 * Created by apple on 2019/7/11.
 * description:
 */
public class MailUserAdapter extends BaseQuickAdapter<MailUserBean, BaseViewHolder> {
    public MailUserAdapter(int layoutResId, @Nullable List<MailUserBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MailUserBean item) {
        helper.setText(R.id.tvUserMail,mContext.getString(R.string.user_mail,
                item.getNickname(), item.getAddress()));
        helper.addOnClickListener(R.id.ivDelete);
    }
}